package com.wangcang.widgetlibrary.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *
 * Created by ShineF on 2017/6/22 0022.
 */

public class PicBean implements Parcelable {

    private int picResc;

    private String name;

    public PicBean(int picResc, String name) {
        this.picResc = picResc;
        this.name = name;
    }

    public int getPicResc() {
        return picResc;
    }

    public void setPicResc(int picResc) {
        this.picResc = picResc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.picResc);
        dest.writeString(this.name);
    }

    public PicBean() {
    }

    protected PicBean(Parcel in) {
        this.picResc = in.readInt();
        this.name = in.readString();
    }

    public static final Creator<PicBean> CREATOR = new Creator<PicBean>() {
        @Override
        public PicBean createFromParcel(Parcel source) {
            return new PicBean(source);
        }

        @Override
        public PicBean[] newArray(int size) {
            return new PicBean[size];
        }
    };
}
